Legrand / Raritan Xerus™ JSON-RPC API for Remote Access Devices like KX4-101, KX3G2
Loading...
Searching...
No Matches
LocalPort.idl
1#ifndef __RADM_LOCALPORT_IDL__
2#define __RADM_LOCALPORT_IDL__
3
4#include <Event.idl>
5#include <KeyboardLayout.idl>
6#include <KvmPort.idl>
7#include <LocalMonitor.idl>
8
9module radm {
10
11 /** Interface for local user interface */
12 interface LocalPort {
13 constant int ERR_INVALID_ARGUMENT = 1; ///< Invalid parameters
14 constant int ERR_ACCESS_DENIED = 2; ///< Port access denied
15 constant int ERR_AUTOSCAN_CONFLICT = 3; ///< Tiering mode can not be enabled while auto-scan feature is active
16
17 /** Key combinations for switching from KVM port to local UI */
18 enumeration HotKey {
19 DOUBLE_SCROLL_LOCK,
20 DOUBLE_NUM_LOCK,
21 DOUBLE_CAPS_LOCK,
22 DOUBLE_LEFT_ALT_KEY,
23 DOUBLE_LEFT_SHIFT_KEY,
24 DOUBLE_LEFT_CTRL_KEY
25 };
26
27 /** Keys for switching from local UI to KVM port */
28 enumeration ConnectKey {
29 DISABLED,
30 LEFT_ALT_KEY,
31 LEFT_SHIFT_KEY,
32 LEFT_CTRL_KEY
33 };
34
35 /** Authentication modes for local UI */
36 enumeration LocalUserAuthMode {
37 COMMON, ///< Use authentication as configured (local/LDAP/Radius)
38 NONE ///< Do not use authentication
39 };
40
41 /** Tier Mode */
42 enumeration TieringMode {
43 NO_TIERING, ///< No tiering
44 AS_BASE, ///< Tiering as base device
45 AS_TIER ///< Tiering as tier device
46 };
47
48 /** Local port settings */
49 structure Settings {
50 boolean enabled; ///< Whether local port UI is enabled or not
51 KeyboardLayout keyboardLayout; ///< Keyboard language to use
52 HotKey hotkey; ///< Key combination to use for going back from KVM port to UI
53 ConnectKey connectkey; ///< Key to use to trigger switch to KVM port
54 LocalUserAuthMode authMode; ///< Authentication mode for local UI
55 boolean ignoreCCManagedMode; ///< Whether to allow local UI login under CC-SG management
56 TieringMode tieringMode; ///< Tier mode
57 string tieringSecret; ///< Secret for tiering credential
58 };
59
60 /**
61 * Get monitor attached to local port
62 *
63 * @return Local monitor instance
64 */
66
67 /**
68 * Get local port settings
69 *
70 * @return Port settings
71 */
73
74 /**
75 * Set local port settings
76 *
77 * @param settings New settings
78 *
79 * @return 0 if OK
80 * @return 1 if any setting was invalid
81 */
82 int setSettings(in Settings settings);
83
84 /**
85 * Switch local port to show given KVM port
86 *
87 * @param sessionId ID of the session under which to execute the switch
88 * @param port Port to switch to
89 *
90 * @return 0 if OK
91 * @return 1 if session ID was invalid
92 * @return 2 if session is not allowed to access the given port
93 */
94 int switchToPort(in int sessionId, in KvmPort port);
95
96 /** Event: Local port settings have changed */
97 valueobject SettingsChangedEvent extends event.UserEvent {
98 Settings oldSettings; ///< Settings before change
99 Settings newSettings; ///< Settings after change
100 };
101 };
102
103}
104
105#endif //__RADM_LOCALMONITOR_IDL__
Interface for local user interface.
Definition LocalPort.idl:12
LocalUserAuthMode
Authentication modes for local UI.
Definition LocalPort.idl:36
@ COMMON
Use authentication as configured (local/LDAP/Radius)
Definition LocalPort.idl:37
@ NONE
Do not use authentication.
Definition LocalPort.idl:38
int setSettings(in Settings settings)
Set local port settings.
Settings getSettings()
Get local port settings.
constant int ERR_ACCESS_DENIED
Port access denied.
Definition LocalPort.idl:14
TieringMode
Tier Mode.
Definition LocalPort.idl:42
@ AS_TIER
Tiering as tier device.
Definition LocalPort.idl:45
@ NO_TIERING
No tiering.
Definition LocalPort.idl:43
@ AS_BASE
Tiering as base device.
Definition LocalPort.idl:44
int switchToPort(in int sessionId, in KvmPort port)
Switch local port to show given KVM port.
constant int ERR_INVALID_ARGUMENT
Invalid parameters.
Definition LocalPort.idl:13
HotKey
Key combinations for switching from KVM port to local UI.
Definition LocalPort.idl:18
LocalMonitor getMonitor()
Get monitor attached to local port.
constant int ERR_AUTOSCAN_CONFLICT
Tiering mode can not be enabled while auto-scan feature is active.
Definition LocalPort.idl:15
ConnectKey
Keys for switching from local UI to KVM port.
Definition LocalPort.idl:28
Radm Model.
Definition AccessPort.idl:8
KeyboardLayout
Available keyboard languages.
Event: Local port settings have changed.
Definition LocalPort.idl:97
Settings oldSettings
Settings before change.
Definition LocalPort.idl:98
Settings newSettings
Settings after change.
Definition LocalPort.idl:99
Local port settings.
Definition LocalPort.idl:49
boolean ignoreCCManagedMode
Whether to allow local UI login under CC-SG management.
Definition LocalPort.idl:55
TieringMode tieringMode
Tier mode.
Definition LocalPort.idl:56
KeyboardLayout keyboardLayout
Keyboard language to use.
Definition LocalPort.idl:51
LocalUserAuthMode authMode
Authentication mode for local UI.
Definition LocalPort.idl:54
string tieringSecret
Secret for tiering credential.
Definition LocalPort.idl:57
ConnectKey connectkey
Key to use to trigger switch to KVM port.
Definition LocalPort.idl:53
boolean enabled
Whether local port UI is enabled or not.
Definition LocalPort.idl:50
HotKey hotkey
Key combination to use for going back from KVM port to UI.
Definition LocalPort.idl:52